php forum
php mysql forum
php mysql smarty
 
Topic Options
#316990 - 05/17/08 06:56 PM [7.3] Custom Error Pages
jgeoff Offline
Power User

Registered: 04/05/01
Posts: 97
Loc: NJ

Custom 403 & 404 Error Pages for UBB Threads 7.3

This add-on will create 403 Forbidden and 404 Not Found
error pages for your site, embedded into Threads itself.

This will NOT override Thread's current error-handling,
but complements it as this should eliminate any "errors"
cluttering up your server log about "missing error pages".
These WILL work as error pages in Threads that are not part
of the scripts themselves (e.g., erroneous directory
structure, etc) that sometimes come up.

You can work off these if you want to create other error
pages (400, 401) but I purposely didn't create 500 (Internal
Server Error) as it'd be kinda pointless if Threads doesn't
come up anyway. (I use a standard 500.shtml file for that)

No current files are modified (besides .htaccess)

6 new files:

/languages/english/403.php
/languages/english/404.php
/scripts/403.inc.php
/scripts/404.inc.php
/templates/default/403.tpl
/templates/default/404.tpl

------------------------Demo------------------------

http://www.gangsterbb.net/threads/ubbthreads.php?ubb=403
http://www.gangsterbb.net/threads/ubbthreads.php?ubb=404

Note: You will see errors at these links,
because I am demo'ing custom error pages. laugh

--------------------Instructions--------------------

Enclosed in zip file



Attachments
ErrorPages7.3.zip (4 downloads)
Description: Ver 1.0.0




Edited by jgeoff (05/18/08 03:59 AM)
_________________________
GangsterBB.NET (Ver. 7.3)
2007 Content Rulez Contest - Honorable Mention
UBB.classic 6.7.2 - RIP
Browser: Firefox 2.0

Top
#316991 - 05/17/08 08:31 PM Re: [7.3] Custom Error Pages [Re: jgeoff]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
lol:

403 Forbidden

Sorry, but you must log in to do that.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#316993 - 05/17/08 10:18 PM Re: [7.3] Custom Error Pages [Re: Gizmo]
jgeoff Offline
Power User

Registered: 04/05/01
Posts: 97
Loc: NJ
Do I amuse you? Funny how, like a clown? tipsy laugh
_________________________
GangsterBB.NET (Ver. 7.3)
2007 Content Rulez Contest - Honorable Mention
UBB.classic 6.7.2 - RIP
Browser: Firefox 2.0

Top
#316994 - 05/17/08 11:34 PM Re: [7.3] Custom Error Pages [Re: jgeoff]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
Oh, you know I love you wink... I just find it amusing that you'd require users to be logged in to read an error message :x...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#316995 - 05/17/08 11:39 PM Re: [7.3] Custom Error Pages [Re: Gizmo]
jgeoff Offline
Power User

Registered: 04/05/01
Posts: 97
Loc: NJ

Well, you don't have to log in to read the error messages: the error messages you are seeing are what I am demo'ing after all! laugh wink
_________________________
GangsterBB.NET (Ver. 7.3)
2007 Content Rulez Contest - Honorable Mention
UBB.classic 6.7.2 - RIP
Browser: Firefox 2.0

Top
#316997 - 05/18/08 04:00 AM Re: [7.3] Custom Error Pages [Re: jgeoff]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
worth making the point that by default any file starting with a . is usually hidden in an FTP package, so to view any existing .htaccess file ensure that -la is set within your site settings within your FTP package.

For example in ws_ftp it is site options >> start up >> remote file mask >> enter -la in the blank box and click ok.
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top



Moderator:  sirdude 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks